<%@page contentType="text/html" pageEncoding="UTF-8" import="Modelo.*, java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page import = "java.util.*" %>
<%@page import = "Modelo.*" %>
<%@page import = "javax.swing.*" %>

<jsp:useBean id="proyecto" scope="request" class="Modelo.Proyecto" />
<%
//esto es para que no guarde en el cache la pagina
            response.setHeader("Cache-Control", "max-age=0");
            response.setHeader("Cache-Control", "no-cache");
            response.setHeader("Cache-Control", "no-store");
            response.setHeader("Pragma", "no-cache");
            response.setDateHeader("Expires", -1);
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Autoevaluacion</title>
        <link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" media="screen" />
        <link type="text/css" href="<%=request.getContextPath()%>/jQuery/css/smoothness/jquery-ui-1.7.2.custom.css" rel="Stylesheet" />
        <link type="text/css" href="<%=request.getContextPath()%>/jQuery/css/tablas/tabla.css" rel="Stylesheet" />
        <script  type="text/javascript" src="<%=request.getContextPath()%>/jQuery/development-bundle/ui/ui.core.js"></script>
        <script  type="text/javascript" src="<%=request.getContextPath()%>/jQuery/development-bundle/ui/ui.draggable.js"></script>
        <script  type="text/javascript" src="<%=request.getContextPath()%>/jQuery/development-bundle/ui/ui.droppable.js"></script>
        <script type="text/javascript" src="<%=request.getContextPath()%>/jQuery/js/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="<%=request.getContextPath()%>/jQuery/js/jquery-ui-1.7.2.custom.min.js"></script>
        <script type="text/javascript">
            $(function() {
                $("#accordion").accordion({
                    event: "mouseover"
                });
            });
        </script>
    </head>

    <body>
        <%
        HttpSession s = request.getSession();
        if (s.getAttribute("logged") != null && s.getAttribute("logged").equals(true)) {
            Representante rrr = (Representante) s.getAttribute("representante");
        %>


        <div style="height: 400px">
            <div align="right"  style="width: 640px; position: fixed; text-align: right"  >
                <a href="<%=request.getContextPath()%>/pregunta/mostrar.jsp"><img src="<%=request.getContextPath()%>/images/list.png"  style="border:0" alt="Ver"/></a>
            </div>
            <p><h3>Crear Pregunta</h3></p>
            <p>Seleccione uno de los tipo de pregunta que aparecen en el desplegable</p>
            <form method="POST" name="f99" action="<%=request.getContextPath()%>/pregunta/crearPre.jsp">

                <select name="tipopre" onchange="$('#pregunta').load('jsp5.jsp?tipopre='+this.value);" >
                    <option value="0">Por favor seleccione..</option>
                    <option value="1">Pregunta Abierta -- Una Sola Linea</option>
                    <option value="2">Pregunta Abierta -- Texto Explicativo</option>
                    <option value="3">Selecion Multiple -- Unica Respuesta</option>
                    <option value="4">Selecion Multiple -- Multiple Respuesta</option>
                    <option value="5">Matriz - Seleccion Multiple - Unica Respuesta</option>
                </select>

                <div id="pregunta">

                </div>
                <br>
                <input type="button" value="crear" onclick="f();">
            </form>
           
        </div>

        <%} else {
        response.sendRedirect(request.getContextPath() + "/index.jsp");
    }%>
    </body>
</html>

